<!doctype html>
<html lang="en">
 <head>
  <meta charset="UTF-8">
  <title>获取当前时间</title>
 </head>
 <body>
  <script type="text/javascript">
    
		function checkAuditTime(beginTime,endTime){
	        var nowDate=new Date();
	        var beginDate=new Date(nowDate);
	        var endDate=new Date(nowDate);
	        
	        var beginIndex=beginTime.lastIndexOf("\:");
	        var beginHour=beginTime.substring(0,beginIndex);
	        var beginMinue=beginTime.substring(beginIndex+1,beginTime.length);
	        beginDate.setHours(beginHour,beginMinue, 0, 0);
	        
	        var endIndex=endTime.lastIndexOf("\:");
	        var endHour=endTime.substring(0,endIndex);
	        var endMinue=endTime.substring(endIndex+1,endTime.length);
	        endDate.setHours(endHour, endMinue, 0, 0);
	        if(nowDate.getTime()-beginDate.getTime()>=0 && nowDate.getTime() <= endDate.getTime()){
	            return true;    
	        }else{
	            return false;
	        }
	    }
		var mydata = new Date()
			day = mydata.getDay()
			time = mydata.toLocaleTimeString()
		if(day == 3){
			var flag= checkAuditTime("10:23","10:32");
			console.log(flag,666)
		}
		


  </script>
 </body>
</html>